<template>
  <div>
    <el-table
      :data="treeFiles"
      size="mini"
      row-key="relativePath"
      default-expand-all
      height="600"
      v-loading="loading"
    >
      <el-table-column type="index" width="50"/>
      <el-table-column label="路径">
        <template slot-scope="{row}">
          <span v-if="row.file">{{row.filename}}</span>
          <span v-else>{{row.relativePath}}</span>
        </template>
      </el-table-column>
      <el-table-column prop="lastModified" label="更新时间" width="150"/>
    </el-table>
  </div>
</template>

<script>

export default {
  name: 'resolvejars',
  props: {
    treeFiles: {
      type: Array,
      default: []
    }
  },
  data(){
    return {
      loading: false
    }
  },
  methods: {

  }
}
</script>

<style scoped>

</style>
